package com.campus.backend.log;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @project: log-spring-boot-starter
 * @description: 监控日志配置信息
 * @author: zhaoyujie
 * @create: 2019-10-21 16:54
 */
@Component
@ConfigurationProperties(prefix = "campus.log")
public class LogConfig {
    /**是否启用日志记录*/
    private boolean enabled = true;
    /**忽略的请求类型，例如GET、POST等，用英文逗号隔开*/
    private String requestTypesIgnore = "";
    /**忽略的请求URL，用英文逗号隔开*/
    private String requestUrisIgnore = "";

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getRequestTypesIgnore() {
        return requestTypesIgnore;
    }

    public void setRequestTypesIgnore(String requestTypesIgnore) {
        this.requestTypesIgnore = requestTypesIgnore;
    }

    public String getRequestUrisIgnore() {
        return requestUrisIgnore;
    }

    public void setRequestUrisIgnore(String requestUrisIgnore) {
        this.requestUrisIgnore = requestUrisIgnore;
    }
}
